package com.byconstructor;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author lxh
 * @create 2019-04-02 16:29
 * @desc
 **/
public class App {
    public static void main(String[] args) {

        ApplicationContext ac = new ClassPathXmlApplicationContext("byconstructor-spring-beans.xml");
        Developer developer = (Developer) ac.getBean("developer");
        System.out.println(developer.getLanguage().getName());
    }
}
